package com.duoec.magichour.dto;

import java.util.List;

/**
 * Created by ycoe on 17/7/2.
 */
public class TreeNode<D, T> {
    private T id;

    private T parentId;

    private List<D> children;

    private D parent;

    public T getId() {
        return id;
    }

    public void setId(T id) {
        this.id = id;
    }

    public T getParentId() {
        return parentId;
    }

    public void setParentId(T parentId) {
        this.parentId = parentId;
    }

    public List<D> getChildren() {
        return children;
    }

    public void setChildren(List<D> children) {
        this.children = children;
    }

    public D getParent() {
        return parent;
    }

    public void setParent(D parent) {
        this.parent = parent;
    }
}
